import { request } from '@/utils/http'
import { IhospitalSetRes } from './model/hospitalSetsTypes'

// 登录
export const reqHospitalSet = (
  page: number,
  limit: number,
  hosname?: string,
  hoscode?: string
) => {
  // <any, string>的第一个类型为any即可，实际不会用上
  // 第二个类型是返回值数据中data的类型，根据接口文档填写
  return request.get<any, IhospitalSetRes>(
    `/admin/hosp/hospitalSet/${page}/${limit}`,
    {
      params: {
        hosname,
        hoscode,
      },
    }
  )
}
